//导入 Http 类, 填写正确的路径, 相对路径和绝对路径 
import { Http } from '../utils/http';


class Balance {
  
  //获取会员余额
  static async get_user_balance() {
    return await Http.request({
      url: 'wechat/balance/get_user_balance',
    })
  }

  //获取余额收支明细
  static async get_user_detailed() {
    return await Http.request({
      url: 'wechat/balance/get_balance_detailed_list',
    })
  }

  //获取余额收支详情
  static async get_user_details(id) {
    return await Http.request({
      url:'wechat/balance/get_balance_detailed',
      data: { id: id },
      method: "POST"
    })
  }

  //获取会员提现 - 列表
   static async get_Withdrawal_list() {
      return await Http.request({
      url:'wechat/balance/get_Withdrawal_list',
      method: "POST"
    })
  }

  //获取会员提现 - 详情
  static async get_Withdrawal_detail(id) {
    return await Http.request({
    url:'wechat/balance/get_Withdrawal_detail',
    data:{id},
    method: "POST"
  })
}

  //会员提现余额提交
  static async set_user_sublimtmoney(money) {
    return await Http.request({
      url:'wechat/balance/get_Withdrawal',
      data: { money: money },
      method: "GET"
    })
  }
}


export { Balance }